home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / UserAlert ƒ / UserAlert.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  1.2 KB  |  44 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: UserAlert.h
  4.  
  5.     C header file for a printing extension that adds an
  6.     alert item to the desktop printer menu and displays
  7.     it during despooling.
  8.  
  9.     Dave Hersey
  10.     Apple Developer Technical Support
  11.  
  12.     12/01/92     - dmh - created.
  13.     12/22/93    - dmh - updated for b3.
  14.      5/03/94    - dmh - updated for f2.
  15.  
  16.     (Note: labels are in the Mark menu.)
  17.     
  18. __________________________________________________________*/
  19.  
  20. #define kCreator                'DTPA'    /* Our creator type.            */
  21.  
  22. #define kNumMenuItemsWeAdded    1        /* Number of items we added to    */
  23.                                         /* DTP's menu.                    */
  24.  
  25. #define kAlertItem                1        /* Our DTP menu item to alert    */
  26.                                         /* the user.                    */
  27.  
  28.                                         /* ID of our menu item's STR.    */
  29. #define r_AlertString        gxPrintingTagID
  30.  
  31.                                         /* ID of stat res.    */
  32. #define kUserAttentionID    gxPrintingDriverBaseID + 1
  33.  
  34. #define kAlertStatusIdx            1        /* The index of our alert item                */
  35.                                         /* in the stat resource.                    */
  36.  
  37. // Prototypes:
  38.  
  39. OSErr    NewGetDTPMenuList(MenuHandle aMenu);
  40. OSErr    NewDTPMenuSelect(short itemID, Boolean *done);
  41. OSErr    NewDespoolPage(gxSpoolFile thePrintFile, long pageNumber,
  42.                        gxFormat pageFormat, gxShape *pagePicture,
  43.                        Boolean *formatChanged);
  44.